﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using APILocawebGatewayUI.REDECARD;
using APILocawebGatewayUI.AMEX;
using APILocawebGatewayUI.VISA;
namespace Gateway.Exemplo
{
    public partial class FormularioCriadoEmExecucao : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            //Redecard
            RedeCard redeCard = new RedeCard(this, Bandeira.MASTERCARD, "001", RedecardUtilidades.FormataMoedaParaForm(1));
            Response.Write(redeCard.RenderizarFormulario());
            Response.Write("<br>");
            //Amex
            Amex amex = new Amex(this, AmexUtilidades.FormatarPreco(100), "001");
            Response.Write(amex.RenderizarFormulario());
            Response.Write("<br>");
            
            //VISA
            Visa visa = new Visa(this, VisaUtilidades.FormatarValor(100), VisaUtilidades.FormatarValorCampoFormatado(100), "02", "CPF: 121.780.917-17");
            Response.Write(visa.RenderizarFormulario());
        }
    }
}
